package com.foreverwin.mes.so.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * SFC与派工任务关联表
 * </p>
 *
 * @author Syngna
 * @since 2020-02-14
 */
@TableName("Z_SFC_SO_DISP_REL")
public class SfcSoDispRel extends Model<SfcSoDispRel> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.UUID)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 设备编号
     */
   @TableField("RESRCE")
   private String resrce;
    /**
     * 生产批
     */
   @TableField("SFC")
   private String sfc;
   /**
    * 批次号，SFC号不能和工单号相同时使用
    */
   @TableField("LOT_NO")
   private String lotNo;
    /**
     * 派工任务号
     */
   @TableField("TASK_NO")
   private String taskNo;
    /**
     * 状态（保留）
     */
   @TableField("STATUS")
   private String status;
   @TableField("CREATOR")
   private String creator;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getResrce() {
      return resrce;
   }

   public void setResrce(String resrce) {
      this.resrce = resrce;
   }

   public String getSfc() {
      return sfc;
   }

   public void setSfc(String sfc) {
      this.sfc = sfc;
   }

   public String getLotNo() {
      return lotNo;
   }

   public void setLotNo(String lotNo) {
      this.lotNo = lotNo;
   }

   public String getTaskNo() {
      return taskNo;
   }

   public void setTaskNo(String taskNo) {
      this.taskNo = taskNo;
   }

   public String getStatus() {
      return status;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   public String getCreator() {
      return creator;
   }

   public void setCreator(String creator) {
      this.creator = creator;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String RESRCE = "RESRCE";

   public static final String SFC = "SFC";

   public static final String LOT_NO = "LOT_NO";

   public static final String TASK_NO = "TASK_NO";

   public static final String STATUS = "STATUS";

   public static final String CREATOR = "CREATOR";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "SfcSoDispRel{" +
         "handle = " + handle +
         ", site = " + site +
         ", resrce = " + resrce +
         ", sfc = " + sfc +
         ", taskNo = " + taskNo +
         ", status = " + status +
         ", creator = " + creator +
         ", createdDateTime = " + createdDateTime +
         "}";
   }
}